@echo off
echo Git Multi-Account Manager - Environment Cleanup
echo Git多账号管理工具 - 环境清理

echo This will remove the virtual environment and all installed packages.
echo 这将删除虚拟环境和所有已安装的包。
echo.
set /p confirm="Are you sure? (y/N) 确认删除? (y/N): "

if /i "%confirm%" neq "y" (
    echo Operation cancelled.
    echo 操作已取消。
    pause
    exit /b 0
)

if exist "venv" (
    echo Removing virtual environment...
    echo 正在删除虚拟环境...
    rmdir /s /q venv
    echo Virtual environment removed successfully.
    echo 虚拟环境删除成功。
) else (
    echo No virtual environment found.
    echo 未找到虚拟环境。
)

echo.
echo Cleanup completed.
echo 清理完成。
pause